package com.example.project_springboot.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Slf4j
public class Test2Aop {
    @Pointcut("execution(* com.example.project_springboot.aop.MyAop1.*(..))")
    public void test1_aop(){
    }
    @Before("test1_aop()")
    public void before(JoinPoint joinPoint){
        log.info("before.....");
    }
}
